﻿/*===================================================
* 类名称: MonoStaticMethod
* 类描述:
* 创建人: oream
* 创建时间: 2017/12/24 23:02:23
* 修改人: 
* 修改时间:
* 版本： @version 1.0
=====================================================*/


using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Text;
using System.Threading.Tasks;

namespace Model
{

    public class MonoStaticMethod : IStaticMetod
    {
        private readonly MethodInfo methodInfo;

        public MonoStaticMethod(Type type, string methodName)
        {
            this.methodInfo = type.GetMethod(methodName);
        }

        public override void Run()
        {
            methodInfo?.Invoke(null, null);
        }

        public override void Run(object value)
        {
            throw new NotImplementedException();
        }
    }
}
